require('./app.less');

import React,{Component} from 'react';
import ReactDOM from 'react-dom'
import { HashRouter } from 'react-keeper'
import DB from './db';
import './wx';
import PageHome from 'pages/home/';
import PageDgzsHome from 'pages/dgzshome/';
import PageLsgdHome from 'pages/lsgdhome/';
import PageJdHome from 'pages/jdhome/';
import PageGsggHome from 'pages/gsgghome/';
import PageCxzjHome from 'pages/cxzjhome/';
import PageWdjHome from 'pages/wdjhome/';
import PageCsjsHome from 'pages/csjshome/';
import PageJdzfHome from 'pages/jdzfhome/';

if (window.chrome && window.chrome.webstore) {
  setInterval(() => {
    document.body.focus();
  }, 200);
}

class App extends Component {
  render() {
    return (
      <HashRouter>
        <div>
          <PageHome.route/>
          <PageDgzsHome.route/>
          <PageLsgdHome.route/>
          <PageJdHome.route/>
          <PageGsggHome.route/>
          <PageCxzjHome.route/>
          <PageWdjHome.route/>
          <PageCsjsHome.route/>
          <PageJdzfHome.route/>
        </div>
      </HashRouter>
    )
  }
}

ReactDOM.render(<App/>, document.getElementById('App'))



